package org.ycb.ycbisgod.ycbwoxihuanni.util;

import java.io.Serializable;
import java.util.List;

import org.ycb.ycbisgod.ycbwoxihuanni.config.LongJsonSerializer;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
/* 分页结果 */
public class PageResult<T> implements Serializable {
    /** 总记录数 */
    @JsonSerialize(using = LongJsonSerializer.class)
    private Long total;
    /** 当前页结果 */
    private List<T> rows;
}
